import http from "./http";
export default {
    //登陆
    Login(params) {
        return http.post(`/login/`, params);
    },
    //注册
    Register(params) {
        return http.post(`/register/`, params);
    },
    //添加节日
    AddFestival(params) {
        return http.post(`/addfestival/`, params)
    },
    //更新节日
    UpdateFestival(params) {
        return http.post(`/updatefestival/`, params)
    },
    //删除节日
    DeleteFestival(params) {
        return http.post(`/deletefestival/`, params)
    },
    //获取单个节日信息
    GetFestival(params) {
        return http.post(`/getfestival/`, params)
    },
    //获取所有节日信息
    GetFestivalList() {
        return http.post(`/getfestivals/`)
    },
    DeleteImg(params) {
        return http.post(`/delete/`, params)
    },
    Upload(params) {
        return http.postForm(`/upload/`, params)
    }
}